package com.viu.technology.po;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

public class Product {
    private String productId;

    @NotBlank(message = "商品名不能为空")
    private String productName;

    @NotNull(message = "商品价格不能为空")
    private Integer productPrice;

    @NotNull(message = "商品库存不能为空")
    private Integer productStock;

    private Integer productType;

    private Integer productStatus;

    private Integer productVersion;

    public Product(String productId, String productName, Integer productPrice, Integer productStock, Integer productType, Integer productStatus, Integer productVersion) {
        this.productId = productId;
        this.productName = productName;
        this.productPrice = productPrice;
        this.productStock = productStock;
        this.productType = productType;
        this.productStatus = productStatus;
        this.productVersion = productVersion;
    }

    public Product() {
        super();
    }

    public String getProductId() {
        return productId;
    }

    public void setProductId(String productId) {
        this.productId = productId;
    }

    public String getProductName() {
        return productName;
    }

    public void setProductName(String productName) {
        this.productName = productName;
    }

    public Integer getProductPrice() {
        return productPrice;
    }

    public void setProductPrice(Integer productPrice) {
        this.productPrice = productPrice;
    }

    public Integer getProductStock() {
        return productStock;
    }

    public void setProductStock(Integer productStock) {
        this.productStock = productStock;
    }

    public Integer getProductType() {
        return productType;
    }

    public void setProductType(Integer productType) {
        this.productType = productType;
    }

    public Integer getProductStatus() {
        return productStatus;
    }

    public void setProductStatus(Integer productStatus) {
        this.productStatus = productStatus;
    }

    public Integer getProductVersion() {
        return productVersion;
    }

    public void setProductVersion(Integer productVersion) {
        this.productVersion = productVersion;
    }
}